import { configureStore } from '@reduxjs/toolkit';
import ballsSlice from './balls/balls.slice';
import  userRegistrationSlice  from './auth/registration.slice';
import  userAuthorizationSlice  from './auth/authorisation.slice';


export const store = configureStore({
	reducer: {
		balls: ballsSlice, 
		registration: userRegistrationSlice,
		authorization: userAuthorizationSlice
	}
});



export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
